//
//  UIView+Frame.m
//  01UI
//
//  Created by dllo on 16/7/14.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "UIView+Frame.h"

@implementation UIView (Frame)

- (void)setSy_x:(CGFloat)sy_x
{
    CGRect rect = self.frame;
    rect.origin.x = sy_x;
    self.frame = rect;
    
}

- (CGFloat)sy_x
{
    return self.frame.origin.x;
}

- (void)setSy_y:(CGFloat)sy_y
{
    CGRect rect = self.frame;
    rect.origin.y = sy_y;
    self.frame = rect;
}

- (CGFloat)sy_y
{
    return self.frame.origin.y;
}

- (void)setSy_width:(CGFloat)sy_width
{
    CGRect rect = self.frame;
    rect.size.width = sy_width;
    self.frame = rect;
}

- (CGFloat)sy_width
{
    return self.frame.size.width;
}

- (void)setSy_height:(CGFloat)sy_height
{
    CGRect rect = self.frame;
    rect.size.height = sy_height;
    self.frame = rect;
}

- (CGFloat)sy_height
{
    return self.frame.size.height;
}

@end
